package com.truthbean.jeetb.utils.web.invoker;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

public class BottomInvoker extends DefaultInvoker {
    public boolean doBefore() {
        return false;
    }

    public boolean doAfter() {
        return false;
    }

    public void invoke(HttpServletRequest request, HttpServletResponse response, HttpSession session) throws Exception {
        try {
            String result = "<div style=\"padding:10px;border-bottom:1px solid #fff;border-top:1px solid #ddd;background:#eee;\">"+
                    "Copyright (C) 2016 <a href=\"https://www.truthbean.com\" target=\"_blank\">www.truthbean.com</a>&nbsp;&nbsp;"+
                    "All Rights Reserved." +
                    "</div>";
            response.getWriter().println(result);
        } catch (Exception e) {
            e.printStackTrace();
            throw e;
        }
    }
}